CXX=g++
CXXFLAGS=
LFLAGS=-Wall -pedantic
dir=build/



__start__: saron_server.out
	./$(dir)saron_server.out

saron_server.out: $(dir)main.o $(dir)saron.o $(dir)config.o $(dir)log.o
	$(CXX) $^ -o $(dir)saron_server.out

$(dir)main.o: main.cpp
	$(CXX) $(LFLAGS) -c $< -o $@

$(dir)saron.o: saron.cpp
	$(CXX) $(LFLAGS) -c $< -o $@

$(dir)config.o: config.cpp
	$(CXX) $(LFLAGS) -c $< -o $@

$(dir)log.o: log.cpp
	$(CXX) $(LFLAGS) -c $< -o $@